<template>
  <div id="app">
     <transition name="fade"> 
         <router-view></router-view> 
     </transition>
  </div>
</template>
<script>
export default {
  name: 'app',
  components: {
  	
  },
  beforeCreate:function(){
    console.log(123);
     console.log(this);
  	if(this.$route.query.MembersID){
  		  sessionStorage.MembersID = this.$route.query.MembersID;
  			this.$store.state.MembersID = sessionStorage.getItem("MembersID"); 
  			this.$store.state.Type=false;
  			
  	}else{
  		 this.$store.state.MembersID = sessionStorage.getItem("MembersID");
  		 this.$store.state.Type=true; 
  	};
  	if(/^(ios|android)$/.test(this.$route.query.Type)){
		 		this.$store.state.Type=false;
  			this.$store.state.DeviceType=this.$route.query.Type;
  			 
		}else{
			 this.$store.state.Type=true;
  			 
		};
  }
}
</script>

<style>

</style>
